<?php
            $this->headTitle($this->title);
             $this->headScript()->appendFile(Zend_Registry::get('static_path').'js/users.js');
            $this->headLink()->appendStylesheet(Zend_Registry::get('static_path').'css/user.css');
            $this->layout()->setLayout('userlayout');
?>
<div class="nav"><a href="<?php echo $this->url(array( 'controller' => 'admin', 'action'     => 'index'),'default', true) ?>" class="navlink">Control Panel</a><img src="../images/arrow.gif" class="arrow"/> Send Email</div>
<div id="result">
<?php echo $this->message ?>
</div>

<div id="userForm">
          <form id="mailform" method="post" action="<?php echo $this->url(array( 'controller' => 'email', 'action'  => 'admin'),'default', true) ?>" enctype="multipart/form-data" >
                <table>
                    <tbody>
                        <tr>
                            <td> <label>Subject:<img src="../images/redStar.gif"/></label></td>
                             <td>   <input type ="text" name="subject" id="subject"size="40" <?php (isset($_POST['subject'])?$_POST['subject']:'') ?>/></td>
                        </tr>
                         <tr>
                            <td> <label>Attachment:</label></td>
                             <td> <input type="file" name="fileName"  id="fileName" ></td>
                        </tr>
                         <tr>
                            <td>   <label>How can we help?<img src="../images/redStar.gif"/></label></td>
                             <td><textarea name ="emailBody" id="emailBody" cols="60" rows="7"><?php (isset($_POST['emailbody'])?$_POST['emailbody']:'') ?></textarea></td>
                        </tr>
                        <tr>
                                <td> <label>Send to Secondary Email:</label> </td>  <td> <input type="checkbox" name="secondary" id="secondary" value="Y"> </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center"><br>
                                   <input type="submit" value="Send Email" id="sendAdminEmail" name="sendemail"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
               <input type="hidden" name="action" value="_send"/>
            </form>
</div>